package com.itheima.String;

import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入对称字符串:");
        String s = sc.next();
        String newStr = "";
        for (int i = s.length()-1; i >=0 ; i--) {
            char ch = s.charAt(i);
            newStr += ch;
        }
        if (s.equals(newStr)){
            System.out.println(s+"是对称字符串");
        }else{
            System.out.println(s+"不是对称字符串");
        }
    }
}
